package com.school.information.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.school.information.core.security.entity.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * (BasicSchool)表实体类
 *
 * @author ycc
 * @since 2023-11-07 14:44:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("basic_school")
@Accessors(chain = true)
public class BasicSchoolEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    //学校代码
    @NotBlank(message = "学校编码不能为空")
    @Length(max = 20, message = "学校编码最大长度为20个字符")
    private String code;
    //学校名称
    @NotBlank(message = "学校名称不能为空")
    @Length(max = 100, message = "学校名称最大长度为100个字符")
    private String name;
    //学校详细地址
    @NotBlank(message = "学校地址不能为空")
    private String address;
    // 经度
    private Double lng;
    // 纬度
    private Double lat;
    //备注    
    private String remark;

}

